<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>循环遍历Array数组</title>
</head>
<body>
<!--

-->
<div th:each="userArray,userArrayStat:${userArray}">
    从0开始：<span th:text="${userArrayStat.index}"></span>
    从1开始：<span th:text="${userArrayStat.count}"></span>
    用户编号：<span th:text="${userArray.id}"></span>
    用户地址：<span th:text="${userArray.address}"></span>
    用户号码：<span th:text="${userArray.phone}"></span>
    用户别名：<span th:text="${userArray.nick}"></span>
</div><br/><br/>




</body>
</html>